
import 'package:flutter/material.dart';

class ScendPage extends StatefulWidget {


  @override
  State<StatefulWidget> createState(){
    return ScendPageState();
  }
}

class ScendPageState extends State<ScendPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("第二个页面"),
      ),
      body: Center(
        child: FlatButton(
            onPressed: (){
              // 触发方法返回上一页
              Navigator.of(context).pop();
            },
            child: Text("点击跳转第一页面")),
      ),
    );
  }
}

